widget_class->compute_expand = gtk_aspect_frame_compute_expand;
widget_class->get_request_mode = gtk_aspect_frame_get_request_mode;
+ /**
+ * GtkAspectFrame:xalign:
+ *
+ * The horizontal alignment of the #GtkAspectFrame:child widget
+ * of the aspect frame.
+ */
g_object_class_install_property (gobject_class,
PROP_XALIGN,
g_param_spec_float ("xalign",
P_("X alignment of the child"),
0.0, 1.0, 0.5,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
+ /**
+ * GtkAspectFrame:yalign:
+ *
+ * The vertical alignment of the #GtkAspectFrame:child widget
+ * of the aspect frame.
+ */
g_object_class_install_property (gobject_class,
PROP_YALIGN,
g_param_spec_float ("yalign",
P_("Y alignment of the child"),
0.0, 1.0, 0.5,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
+ /**
+ * GtkAspectFrame:ratio:
+ *
+ * The aspect ratio to be used by the #GtkAspectFrame.
+ *
+ * This property is only used if #GtkAspectFrame:obey-child is
+ * set to %FALSE.
+ */
g_object_class_install_property (gobject_class,
PROP_RATIO,
g_param_spec_float ("ratio",
P_("Aspect ratio if obey_child is FALSE"),
MIN_RATIO, MAX_RATIO, 1.0,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
+ /**
+ * GtkAspectFrame:obey-child:
+ *
+ * Whether the #GtkAspectFrame should use the aspect ratio of
+ * its #GtkAspectFrame:child widget.
+ */
g_object_class_install_property (gobject_class,
PROP_OBEY_CHILD,
g_param_spec_boolean ("obey-child",
P_("Force aspect ratio to match that of the frame’s child"),
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
-
+ /**
+ * GtkAspectFrame:child:
+ *
+ * The child widget of the #GtkAspectFrame.
+ */
g_object_class_install_property (gobject_class,
PROP_CHILD,
g_param_spec_object ("child",